import { HTTP_INTERCEPTORS } from '@angular/common/http'
import { JWTInterceptor } from '@delon/auth'

import { AccessTokenInterceptor } from './access-token.interceptor'
import { DefaultInterceptor } from './default.interceptor'

export const INTERCEPTOR_PROVIDES = [
  { provide: HTTP_INTERCEPTORS, useClass: JWTInterceptor, multi: true },
  { provide: HTTP_INTERCEPTORS, useClass: AccessTokenInterceptor, multi: true },
  { provide: HTTP_INTERCEPTORS, useClass: DefaultInterceptor, multi: true },
]
